$OpenBSD: patch-ksim_monitors_filesystem_filesystemstats_cpp,v 1.2 2008/03/26 11:11:42 espie Exp $
--- ksim/monitors/filesystem/filesystemstats.cpp.orig	Mon Oct  8 11:49:45 2007
+++ ksim/monitors/filesystem/filesystemstats.cpp	Wed Mar 26 11:51:31 2008
@@ -30,7 +30,7 @@
 #include <sys/types.h>
 #include <sys/param.h>
 
-#if defined(HAVE_SYS_STATVFS_H) && !defined(__DragonFly__)
+#if defined(HAVE_SYS_STATVFS_H) && !defined(__DragonFly__) && !defined(__OpenBSD__)
 #include <sys/statvfs.h>
 #elif defined( HAVE_SYS_STATFS_H )
 #include <sys/statfs.h>
@@ -59,10 +59,10 @@
 #include <stdio.h>
 #include <unistd.h>
 
-#if defined(HAVE_STATVFS) && !defined(__DragonFly__)
+#if defined(HAVE_STATVFS) && !defined(__DragonFly__) && !defined(__OpenBSD__)
 typedef struct statvfs ksim_statfs;
 #define ksim_getfsstat getvfsstat
-#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD )
+#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD ) || defined( Q_OS_OPENBSD )
 typedef struct statfs ksim_statfs;
 #define ksim_getfsstat getfsstat
 #else
@@ -75,9 +75,9 @@ typedef struct // fall back for (possibly) non-support
 
 int fsystemStats( const char * file, ksim_statfs & stats )
 {
-#if defined(HAVE_STATVFS) && !defined(__DragonFly__)
+#if defined(HAVE_STATVFS) && !defined(__DragonFly__) && !defined(__OpenBSD__)
   return statvfs( file, &stats );
-#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD )
+#elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD ) || defined( Q_OS_OPENBSD )
   return statfs( file, &stats );
 #else // fall back for (possibly) non-supported systems
   (void)file;
